package com.hakim.wfb.customer.params.user;

import com.hkfs.fundamental.api.params.BaseParameter;
import com.hkfs.fundamental.validate.annotaion.validation.Mobile;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

/**
 * <p>找回登录密码的参数</p>
 *
 * @author Created by walkman on 2017/7/5.
 */
public class ForgetLoginPasswordParameter extends BaseParameter {

    private static final long serialVersionUID = 1L;

    /**
     * 登录名
     */
    @NotBlank(message = "请输入用户名")
    private String userCode;

    /**
     * 手机号码
     */
    @Mobile(message = "手机号码格式不正确")
    @NotBlank(message = "请输入手机号码")
    private String mobilePhone;

    /**
     * 新密码
     */
    @NotBlank(message = "请输入新密码")
    private String newPassword;

    /**
     * 验证码
     */
    @Length(min = 4, max = 4, message = "请输入6位短信验证码")
    @NotBlank(message = "请输入验证码")
    private String verifyCode;

    /**
     * 验证码类型
     */
    private String verifyCodeType;

    public String getUserCode() {
        return userCode;
    }

    public void setUserCode(String userCode) {
        this.userCode = userCode;
    }

    public String getMobilePhone() {
        return mobilePhone;
    }

    public void setMobilePhone(String mobilePhone) {
        this.mobilePhone = mobilePhone;
    }

    public String getNewPassword() {
        return newPassword;
    }

    public void setNewPassword(String newPassword) {
        this.newPassword = newPassword;
    }

    public String getVerifyCode() {
        return verifyCode;
    }

    public void setVerifyCode(String verifyCode) {
        this.verifyCode = verifyCode;
    }

    public String getVerifyCodeType() {
        return verifyCodeType;
    }

    public void setVerifyCodeType(String verifyCodeType) {
        this.verifyCodeType = verifyCodeType;
    }
}
